package com.wjq.boot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wjq.boot.core.Base;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangjiaquan
 * @since 2024-08-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_admin")
public class TAdmin extends Base {

    private static final long serialVersionUID = 1L;

    public TAdmin(String name, String nickname, Boolean sex, LocalDate birthday, String phone, String email, Integer state) {
        this.name = name;
        this.nickname = nickname;
        this.sex = sex;
        this.birthday = birthday;
        this.phone = phone;
        this.email = email;
        this.state = state;
    }

    /**
     * 姓名
     */
    private String name;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 性别 0-女 1-男
     */
    private Boolean sex;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    @JsonIgnore
    private String password;

    private Integer state;

}
